package cn.wolfcode.luowowo.comment.service;

import cn.wolfcode.luowowo.comment.domain.WendaComment;
import cn.wolfcode.luowowo.comment.query.WendaCommentQuery;
import org.springframework.data.domain.Page;

import java.util.List;

public interface IWendaCommentService {
    WendaComment save(WendaComment comment);

    /**
     * mongodb分页
     * @param qo
     * @return
     */
    Page query(WendaCommentQuery qo);

    /**
     * 查询评论数量
     * @param wendaId
     * @return
     */
    Long getCount(Long wendaId);

    Page queryByStatus(WendaCommentQuery qo);
}
